• A protocol for a UIView subclass that displays information about a selected annotation near that annotation.

    To receive updates from an object that conforms to the MGLCalloutView protocol, use the optional methods available in the MGLCalloutViewDelegate protocol.

    See the Display custom views as callouts example to learn how to customize an MGLCalloutView.

    See more

    Declaration

    Objective-C

    @protocol MGLCalloutView <NSObject>

    Swift

    protocol MGLCalloutView : NSObjectProtocol
  • The MGLCalloutViewDelegate protocol defines a set of optional methods that you can use to receive messages from an object that conforms to the MGLCalloutView protocol. The callout view uses these methods to inform the delegate that the user has interacted with the the callout view.

    See more

    Declaration

    Objective-C

    @protocol MGLCalloutViewDelegate <NSObject>

    Swift

    protocol MGLCalloutViewDelegate : NSObjectProtocol
  • A specialized view that displays the current compass heading for its associated map.

    See more

    Declaration

    Objective-C

    
    @interface MGLCompassButton : UIImageView

    Swift

    class MGLCompassButton : UIImageView